package com.gml.jdk.annotation.table;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 注解String类型字段
 * @author gml
 * @version V1.0
 * @Package com.gml.test.annotation.table
 * @date 2020/9/9 23:01
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SQLString {

    //对应数据库表列名
    String name() default  "";

    //列类型分配长度，如varchar(16)
    int value() default 0;

    //嵌套字段
    Constraints constraints() default @Constraints;
}
